package com.googlecode.recycled.lang.jse.api.concurrent;

/**
 * Implementor of this interface can return result of the asynchronous method call.
 *
 * @param <T> Type of the returned value.
 */
public interface AsyncResult<T> {

    /**
     * Returns result of the asynchronous method call. If result is not ready yet,
     * method blocks until return value is available.
     *
     * @return result of the asynchronous method call.
     */
    T get();

}
